package com.hs.hu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hs.bai.pojo.Order;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jiajie Hu
 * @since 2022-06-13
 */
@TableName("t_receipt")
public class Receipt implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *  回单编号
     */
    @TableId(value = "r_id")
    private Integer rId;

    /**
     *  回单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date rTime;

    /**
     * 回单说明
     */
    private String rDesc;

    /**
     * 回单状态
     */
    private Integer rStatus;

    /**
     * 订单编号
     */
    private String rOrderId;

    /**
     *已上传回单数
     */
    private Integer rUpload;

    /**
     *订单属性
     */
    @TableField(exist = false)
    private Order order;

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }
    public Date getrTime() {
        return rTime;
    }

    public void setrTime(Date rTime) {
        this.rTime = rTime;
    }
    public String getrDesc() {
        return rDesc;
    }

    public void setrDesc(String rDesc) {
        this.rDesc = rDesc;
    }
    public Integer getrStatus() {
        return rStatus;
    }

    public void setrStatus(Integer rStatus) {
        this.rStatus = rStatus;
    }
    public String getrOrderId() {
        return rOrderId;
    }

    public void setrOrderId(String rOrderId) {
        this.rOrderId = rOrderId;
    }

    public Integer getrUpload() {
        return rUpload;
    }

    public void setrUpload(Integer rUpload) {
        this.rUpload = rUpload;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    @Override
    public String toString() {
        return "Receipt{" +
                "rId=" + rId +
                ", rTime=" + rTime +
                ", rDesc='" + rDesc + '\'' +
                ", rStatus=" + rStatus +
                ", rOrderId='" + rOrderId + '\'' +
                ", rUpload=" + rUpload +
                ", order=" + order +
                '}';
    }
}
